package com.yunxi.activiti.service;

import com.github.pagehelper.PageInfo;
import com.yunxi.activiti.pojo.ActivitiTypeVO;
import org.springframework.transaction.annotation.Transactional;

import java.lang.reflect.InvocationTargetException;
import java.util.List;
import java.util.Map;

/**
 * Created by Administrator on 2018/1/25.
 */
public interface ActivitiTypeDubboService{
    List<ActivitiTypeVO> findActivitiTypesList();

    ActivitiTypeVO findByFromType(String fromType);

    List<ActivitiTypeVO> listCas(Map<String, Object> map);

//    List<ActivitiTypeVO> findMapByList(Map<String, Object> params);
//
//    List<ActivitiTypeVO> findMapByPageList(Map<String, Object> params);
//
//    ActivitiTypeVO getByMap(Map<String, Object> params);


    ActivitiTypeVO getById(Long id) throws InvocationTargetException, IllegalAccessException;

    void saveOrUpdate(ActivitiTypeVO activitiTypeVO) throws InvocationTargetException, IllegalAccessException;

    void removeById(Long id);

    PageInfo<ActivitiTypeVO> findPageByVO(ActivitiTypeVO activitiTypeVO, Integer pageNum, Integer pageSize) throws InvocationTargetException, IllegalAccessException;

    void removeByListVo(List<ActivitiTypeVO> activitiTypeVOList) throws IllegalAccessException, InvocationTargetException, InstantiationException;

    List listByVo(ActivitiTypeVO activitiTypeVO);
}
